import {Form, CheckList, Input,DatePicker, Checkbox, TextArea, Switch, Radio} from 'antd-mobile'
import { useCallback } from 'react';
import {ConditionItemType, SchemaOption} from '../../../../designer/conditionsSchema'
function CutsomForm (){

}

export default CutsomForm;

const Compoents = {
    edoc2Textbox: Input,
    // edoc2SelectFolder,
    // edoc2SelectMember,
    edoc2Date: DatePicker,
    edoc2Selectbox_singleSelectbox: CheckList,
    edoc2Selectbox_multipleSelectbox: CheckList,
    edoc2Selectbox_single: Radio,
    edoc2Selectbox_multiple: Checkbox,
    edoc2Number: Input,
    edoc2TextArea: TextArea,
    edoc2Switch: Switch
}
function FormItem (props: {
    value?: SchemaOption;
    onChange?: (value: SchemaOption) => void,
    type: string
}) {
    const handleChange = useCallback((value) => {
        props.onChange?.({
            ...props.value,
            value
        } as SchemaOption)
    }, [props.value, props.onChange]);
}